<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>小微升级进件</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <meta http-equiv="Pragma"   ="" content="no-cache">

    <meta http-equiv="Cache-Control"   ="" content="no-cache">&nbsp;
    <meta http-equiv="Expires"   ="" content="0">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="/layui/style/admin.css" media="all"/>
</head>
<body layadmin-themealias="default">&nbsp;
<legend><span style="color: red">注意:小微商户升级操作只针对以前是小微商户现在进行升级操作</span></legend>
<form class="layui-form" lay-filter="wxmchInfo_form"
      action="http://face.idverify.net/enterprise_info/index?mchUserId=259">
    <input type="hidden" id="wxMchId" name="id" value="" th:value="${info.id}">
    <input type="hidden" id="userId" name="userId" value="" th:value="${info.userId}">
    <input type="hidden" id="sub_mch_id" name="sub_mch_id" value="" th:value="${info.sub_mch_id}">

    <div class="layui-form-item " th:if="${#strings.isEmpty(info.sub_mch_id)}">
        <div class="layui-input-block">
            <input type="text" name="lastMessage" style="color: red ;border: none;" value="您的小微商户进件成后才能进行升级进件!!!" disabled
                   autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item ">
        <label class="layui-form-label">主体类型</label>
        <div class="layui-input-block">
            <select name="organization_type" th:value="${info.organization_type}">
                <option th:selected="${info.organization_type=='2'}" value="2">企业</option>
                <option th:selected="${info.organization_type=='4'}" value="4">个体工商户</option>
                <option th:selected="${info.organization_type=='3'}" value="3">党政、机关及事业单位</option>
                <option th:selected="${info.organization_type=='1708'}" value="1708">其他组织</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">营业执照扫描件</label>
        <div class="layui-input-block face_file">
            <div class="layui-upload-list">
                <input type="hidden" lay-verify="business_license" th:value="${info.business_license_copy}" keyname="business_license_copy"
                       name="business_license_copy" value="" class="face_file_input">
                <img class="layui-upload-img face_file_img" style="max-width: 300px; max-height: 200px;">
                <p class="fade_file_tip"></p>
            </div>
            <button type="button" class="layui-btn layui-form-label face_file_btn">上传图片</button>
            <input class="layui-upload-file" type="file" accept="undefined" name="file">

        </div>
    </div>

    <div class="layui-form-item ">
        <label class="layui-form-label">营业执照注册号</label>
        <div class="layui-input-block">
            <input type="text" lay-verify="required" name="business_license_number" th:value="${info.business_license_number}" value=""
                   placeholder="营业执照注册号" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item ">
        <label class="layui-form-label">商户名称</label>
        <div class="layui-input-block">
            <input type="text" lay-verify="required" name="merchant_name" value="" th:value="${info.merchant_name}"
                   placeholder="请填写营业执照上的商户名称" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item ">
        <label class="layui-form-label">注册地址</label>
        <div class="layui-input-block">
            <input type="text" lay-verify="required" name="company_address" value="" th:value="${info.company_address}"
                   placeholder="注册地址" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item ">
        <label class="layui-form-label">经营者姓名或法定代表人</label>
        <div class="layui-input-block">
            <input type="text" lay-verify="required" name="legal_person" value="" th:value="${info.legal_person}"
                   placeholder="经营者姓名/法定代表人" autocomplete="off" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item ">
        <label class="layui-form-label">营业期限(格式2010-01-01|2020-01-01)</label>
        <div class="layui-input-block">
            <input type="text" lay-verify="required" name="business_time" value="" th:value="${info.business_time}"
                   placeholder="营业期限" autocomplete="off" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item ">
        <legend><span style="color: red">注意:</span>若营业执照上的营业执照注册号为18位统一社会信用代码，请选择“已三证合一”，否则请选择“未三证合一”</legend>
        <label class="layui-form-label">营业执照类型</label>

        <div class="layui-input-block">
            <select name="business_licence_type" th:value="${info.business_licence_type}">
                <option th:selected="${info.business_licence_type=='1762'}" value="1762">已三证合一</option>
                <option th:selected="${info.business_licence_type=='1763'}" value="1763">未三证合一</option>
            </select>
        </div>
    </div>


    <div class="layui-form-item ">
        <legend><span style="color: red">注意商户简称:</span>将在支付完成页向买家展示，需与微信经营范围相关</legend>
        <label class="layui-form-label">商户简称</label>
        <div class="layui-input-block">
            <input type="text" lay-verify="required" name="merchant_shortname" value="" th:value="${info.merchant_shortname}"
                   placeholder="商户简称" autocomplete="off" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item ">
        <legend><span style="color: red">注意:</span>详细参见下发的费率结算规则对照表</legend>
        <label class="layui-form-label">费率结算规则ID</label>
        <div class="layui-input-block">
            <input type="text" lay-verify="required" name="business" value="" th:value="${info.business}"
                   placeholder="费率结算规则ID" autocomplete="off" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item ">
        <label class="layui-form-label">经营场景</label>
        <div class="layui-input-block">
            <select name="business_scene" th:value="${info.business_scene}">
                <option th:selected="${info.business_scene=='[1721]'}" value="[1721]">线下</option>
                <option th:selected="${info.business_scene=='[1837]'}" value="[1837]">公众号</option>
                <option th:selected="${info.business_scene=='[1838]'}" value="[1838]">小程序</option>
                <option th:selected="${info.business_scene=='[1724]'}" value="[1724]">APP</option>
                <option th:selected="${info.business_scene=='[1840]'}" value="[1840]">PC网站</option>
            </select>
        </div>
    </div>


    <div class="layui-form-item" sec:authorize="hasRole('AGENCY_MANAGER')">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="wxmchInfo_form_ok">暂存</button>
            <button class="layui-btn" lay-submit="" lay-filter="wxmchInfo_form_apply">进件提交</button>
        </div>
    </div>
</form>

<script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/js/applyment/wxMchUpgradeInfo.js"></script>


</body>